<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        // 对象都会有一个__proto__指向构造函数的prototype对象
        // __proto__中也有constructor属性指向创建该实例的构造函数

        function User(name, age) {
            this.name = name;
            this.age = age;
            
        }
        User.prototype.sing = function () {
                
        }
        User.page = 2
        User.run = function() {
            console.log(this)
        }
        let user = new User('dcj', 123)
        console.log(User.prototype === user.__proto__)  // true
        console.log(User === user.__proto__.constructor)  // true


    </script>
</body>
</html>